<?php defined('InShopNC') or exit('Access Invalid!');?>
<div class="ncm-container">
<?php include template('member/member_left');?>
  <div class="right-layout">
<div class="ncm-flow-layout">
  <div id="ncmInformFlow" class="ncm-flow-container">
    <div class="title">
      <h3>举报商品</h3>
    </div>
	<?php foreach($output['list'] as $val) { ?>
    <div class="ncm-flow-step">
      <dl class="step-first current">
        <dt>填写举报内容</dt>
        <dd class="bg"></dd>
      </dl>
      <dl class="<?php if ($val['inform_state'] >= 1) echo 'current' ?>">
        <dt>平台审核处理</dt>
        <dd class="bg"> </dd>
      </dl>
      <dl class="<?php if ($val['inform_state'] == 2) echo 'current' ?>">
        <dt>举报完成</dt>
        <dd class="bg"> </dd>
      </dl>
    </div>
    <div class="ncm-default-form">
      <div id="warning"></div>
      
      <dl>
        <dt>被举报商家：</dt>
        <dd><a href="<?php echo urlShop('show_store', 'index',array('store_id'=>$output['goods_info']['store_id']));?>" target="_blank"><?php echo $output['goods_info']['store_name']; ?></a></dd>
      </dl>
      <dl>
        <dt>相关商品：</dt>
        <dd>
          <div class="ncm-inform-item">
            <div class="ncm-goods-thumb-mini"><a href="<?php echo urlShop('goods', 'index',array('goods_id'=>$output['goods_info']['goods_id']));?>" target="_blank"><img src="<?php echo thumb($output['goods_info'],60);?>" onMouseOver="toolTip('<img src=<?php echo thumb($output['goods_info'],240);?>>')" onMouseOut="toolTip()" /></a></div>
            <a href="<?php echo urlShop('goods', 'index',array('goods_id'=>$output['goods_info']['goods_id']));?>" target="_blank"><?php echo $output['goods_info']['goods_name']; ?></a></div>
        </dd>
      </dl>

      <dl>
        <dt>举报类型：</dt>
        <dd><?php echo $val['inform_subject_type_name'];?></dd>
      </dl>
      <dl>
        <dt>举报主题：</dt>
        <dd><?php echo $val['inform_subject_content'];?></dd>
      </dl>

      <dl>
        <dt>举报内容：</dt>
        <dd><?php echo $val['inform_content'];?></dd>
      </dl>
      <dl class="noborder">
        <dt>图片：</dt>
        <dd>
        <ul class="ncm-evidence-pic">
		<?php if(empty($val['inform_pic1'])&&empty($val['inform_pic2'])&&empty($val['inform_pic3'])) {
                            echo $lang['inform_pic_none'];
                        } else {
                            $pic_link = SHOP_SITE_URL.'/index.php?act=show_pics&type=inform&pics=';
                            if(!empty($val['inform_pic1'])) {
                                $pic_link .= $val['inform_pic1'].'|';
								$inform_pic .=$val['inform_pic1'];
                            }
                            if(!empty($val['inform_pic2'])) {
                                $pic_link .= $val['inform_pic2'].'|';
								$inform_pic .=$val['inform_pic2'];
                            }
                            if(!empty($val['inform_pic3'])) {
                                $pic_link .= $val['inform_pic3'].'|';
								$inform_pic .=$val['inform_pic3'];
                            }
                            $pic_link = rtrim($pic_link,'|'); 
                    ?>
					          <li><a href="<?php echo $pic_link;?>" target="_blank"><img src="<?php echo UPLOAD_SITE_URL.'/shop/inform/'.$inform_pic ?>" title="<?php echo $lang['inform_pic_view'];?>"/></a></li>
          <?php } ?>
        </ul>
        </dd>
      </dl>
      <dl>
        <dt>处理结果:</dt>
        <dd><?php 
                          if($val['inform_state']==='1') echo $lang['inform_state_unhandle']; 
                          if($val['inform_state']==='2') echo $lang['inform_state_handled'];
                      ?>
	    <?php if ($val['inform_handle_type'] > 0) { ?> - 
		<?php 
			if($val['inform_handle_type']==='1') echo $lang['inform_handle_type_unuse']; 
			if($val['inform_handle_type']==='2') echo $lang['inform_handle_type_venom']; 
			if($val['inform_handle_type']==='3') echo $lang['inform_handle_type_valid']; 
		?><?php } ?>
		</dd>
      </dl>

	  <?php if (!empty($val['inform_handle_message'])) { ?>
      <dl>
        <dt>处理信息:</dt>
        <dd><?php echo $val['inform_handle_message'];?></dd>
      </dl>
	  <?php } ?>
      <div class="bottom"><a href="javascript:history.go(-1);" class="ncm-btn"><i class="icon-reply"></i>返回列表</a></div>
    </div>
      <?php }?>
  </div>
  <div class="ncm-flow-item">
    <div class="title">违规举报须知</div>
    <div class="content">
      <div class="alert">
        <ul>
          <li> 1.请提供充分的证据以确保举报成功，请珍惜您的会员权利，帮助商城更好地管理网站；</li>
          <li> 2.被举报待处理的商品不能反复进行违规提交，处理下架后的商品不能再次举报，商家如重新上架后仍存在违规现象，可再次对该商品进行违规举报；</li>
          <li> 3.举报仅针对商品或商家本身，如需处理交易中产生的纠纷，请选择投诉；</li>
          <li> 4.举报时依次选择举报类型及举报主题（必填），填写违规描述（必填，不超过200字），上传3张以内的举证图片（选填），详细的举报内容有助于平台对该条举报的准确处理。</li>
        </ul>
      </div>
    </div>
  </div>
</div>
  </div>
  <div class="clear"></div>
</div>